//
//  ZCAddNewAddressFootView.m
//  ZCJZ
//
//  Created by sujeking on 2019/2/27.
//  Copyright © 2019年 jeking. All rights reserved.
//

#import "ZCAddNewAddressFootView.h"

@interface ZCAddNewAddressFootView()

@property (weak, nonatomic) IBOutlet UIButton *button;

@end

@implementation ZCAddNewAddressFootView

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setupSubViews];
}

- (void)setupSubViews {
    self.button.layer.cornerRadius = 3.0f;
    self.button.layer.masksToBounds = YES;
    self.button.backgroundColor = self.btnColor;
}

- (void)addTarget:(nullable id)target action:(SEL)action title:(NSString *)title {
    [self.button setTitle:title forState:UIControlStateNormal];
    [self.button addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
}

@end
